﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Newton
{
    class Tiro : GameObject
    {
        
        public GameWindow Window;

        public Player player;

        public Animation firing;

        public Tiro(GameWindow Window, ContentManager content)
        {
            this.Window = Window;
            base.Texture = content.Load<Texture2D>("cannon3");
            firing = new Animation("Firing", 60, 60, 180, 0, 1, 10, true); 
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch, SpriteEffects.None);
            this.currentAnimation = firing;
        }

        public override void Update()
        {

        }

        public  void Update(GameTime gameTime,  Player player)
        {
            this.player = player;
            
        }
    }
}
